long test( int a, int b ){
    // a in edi, b in esi
    a++; b++;
    if ( a>b ){
        return 1;
    } else {
        return 2;
    }
}

/*

0000000000000000 <test>:
   0:   83 c7 01                add    $0x1,%edi
   3:   83 c6 01                add    $0x1,%esi
   6:   39 f7                   cmp    %esi,%edi # cmp b,a
   8:   7e 06                   jle    10 <test+0x10> # if a<=b then jump
   a:   b8 01 00 00 00          mov    $0x1,%eax
   f:   c3                      retq   
  10:   b8 02 00 00 00          mov    $0x2,%eax
  15:   c3                      retq  

*/